package org.HU.train.member.request.member;

import jakarta.validation.constraints.NotBlank;

/**
 * @Author ZUZ
 * @Description: TODO
 * @Date 2024-12-17 19:53
 * @ClassName: MemberRegisterReq
 */
public class MemberRegisterReq {

    //要求mobile不能为空
    //用了这个注解之后还需要在controller层的对应地方加上@Valid注解
    @NotBlank(message = "手机号不能为空")
    private String mobile;

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    @Override
    public String toString() {
        return "MemberRegisterReq{" +
                "mobile='" + mobile + '\'' +
                '}';
    }
}
